package com.you.atlas.web.member.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.Navigator;
import com.you.atlas.biz.member.service.AccountBindService;
import com.you.common.webx.AuthContext;
import com.you.member.dal.dao.dataobject.AccountBindDO;

public class Bind {

    @Autowired
    private AccountBindService accountBindService;

    public void execute(Context context, Navigator navigator) {
        Long memberId = AuthContext.getContext().getMemberId();
        AccountBindDO accountBind = accountBindService.findByMemberId(memberId);
        context.put("accountBind", accountBind);
    }
}
